//
//  UITextField+Addtions.m
//  Backhome
//
//  Created by vbn on 2018/9/6.
//  Copyright © 2018年 SmartHome. All rights reserved.
//

#import "UITextField+KNAddtions.h"

@implementation UITextField (KNAddtions)

- (void)KNSetPlaceHolderColor:(UIColor *)color {
    if ([self respondsToSelector:@selector(setAttributedPlaceholder:)]) {
        self.attributedPlaceholder = [[NSAttributedString alloc] initWithString:self.placeholder attributes:@{NSForegroundColorAttributeName: color}];
    }
}

@end
